]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Make the button layout visible always
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 21 Dec 2012 16:10:25 +0000 (11:10 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 26 Dec 2012 03:18:42 +0000 (22:18 -0500)
With the last button-less modal dialog gone, there's no reason it
should ever be hidden.

https://bugzilla.gnome.org/show_bug.cgi?id=690594

js/ui/modalDialog.js

index 065ce9e9be2da9c3e90f3b048b5fe9e067776779..ac74afdd9060e29876bdf753504d4331b7867ece 100644 (file)
@@ -96,8 +96,7 @@ const ModalDialog = new Lang.Class({
                                 y_align: St.Align.START });
 
         this.buttonLayout = new St.BoxLayout({ style_class: 'modal-dialog-button-box',
-                                                visible:     false,
-                                                vertical:    false });
+                                               vertical: false });
         this.dialogLayout.add(this.buttonLayout,
                               { expand:  true,
                                 x_align: St.Align.MIDDLE,
@@ -120,7 +119,6 @@ const ModalDialog = new Lang.Class({
 
     setButtons: function(buttons) {
         this.clearButtons();
-        this.buttonLayout.visible = (buttons.length > 0);
 
         for (let i = 0; i < buttons.length; i++) {
             let buttonInfo = buttons[i];